﻿using System.Collections.Generic;
using Infrastructure;

namespace Infrastructure.Models.Dtos
{
    /// <summary>
    /// 返回确定类型的表格数据，可以为swagger提供精准的注释
    /// </summary>
    public class PagedRes<T>
    {
        public PagedRes()
        {

        }
        public PagedRes(int pageIndex, int total, int pageSize, List<T> list)
        {
            Total = total;
            PageIndex = pageIndex;
            PageSize = pageSize;
            List = list;
        }

        /// <summary>
        /// 总数
        /// </summary>
        public int Total { get; set; }
        /// <summary>
        /// 第几页
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每一页多少条
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 数据内容
        /// </summary>
        public List<T> List { get; set; }



    }
}